/* eslint-disable */
import { SingleTableMixins } from '@/mixins/SingleTableMixins'
import Pagination from '@/components/Pagination'
import AssetModal from '../modules/AssetModal'
import UseModal from '../modules/UseModal'
import useRecord from './useRecord'
export default {
  mixins: [ SingleTableMixins ],
  components: {Pagination, AssetModal, UseModal,useRecord},
  data() {
    return {
      url:{
        list: "/assetuse/recevieList",
      },
      // 表单数据选择
      multipleSelection: [],
      price: 0,
      id: '',
    }
  },
  mounted() {

  },
  methods: {

    // 表单数据选择
    handleSelectionChange(selection) {
      this.price = 0;
      selection.forEach(element => {
        this.price += parseInt(element.price)
      });
      this.multipleSelection = selection;
    },

    handleUse(){
      this.$refs.assetForm.add(this.multipleSelection,this.price );
    }

  }
}
